import React, { Component } from 'react'
import {Route,Switch} from 'react-router-dom'
import Login from '@/pages/Login'
import Register from '@/pages/Register'
import NotFount from '@/pages/NotFount'
import Layout from '@/pages/Layout'
class Routes extends Component {
    render(){
        return (
            <div style={{height:"100%",overflow: 'hidden'}}>
                <Switch>
                    <Route path='/login' component={Login}></Route>
                    <Route path='/register' component={Register}></Route>
                    <Route path='/404' component={NotFount}></Route>
                    <Route component={Layout}></Route> 
                </Switch>
            </div>
        )
    }
}

export default Routes